import request from '@/utils/request'

// 查询岗训时间列表
export function listGxsj(query) {
  return request({
    url: '/admin/gxsj/list',
    method: 'get',
    params: query
  })
}

// 查询岗训时间详细
export function getGxsj(id) {
  return request({
    url: '/admin/gxsj/' + id,
    method: 'get'
  })
}

// 新增岗训时间
export function addGxsj(data) {
  return request({
    url: '/admin/gxsj',
    method: 'post',
    data: data
  })
}

// 修改岗训时间
export function updateGxsj(data) {
  return request({
    url: '/admin/gxsj',
    method: 'put',
    data: data
  })
}

// 删除岗训时间
export function delGxsj(id) {
  return request({
    url: '/admin/gxsj/' + id,
    method: 'delete'
  })
}
